package com.supermarket.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.business.domain.SupermarketCashier;
import com.supermarket.common.annotation.AutoFill;
import com.supermarket.common.enums.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 收银员Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
public interface SupermarketCashierMapper extends BaseMapper<SupermarketCashier>
{
    /**
     * 查询收银员
     * 
     * @param cashierId 收银员主键
     * @return 收银员
     */
    public SupermarketCashier selectSysCashierByCashierId(Long cashierId);

    /**
     * 查询收银员列表
     * 
     * @param supermarketCashier 收银员
     * @return 收银员集合
     */
    public List<SupermarketCashier> selectSysCashierList(SupermarketCashier supermarketCashier);

    /**
     * 新增收银员
     * 
     * @param supermarketCashier 收银员
     * @return 结果
     */
    @AutoFill(value = OperationType.INSERT)
    public int insertSysCashier(SupermarketCashier supermarketCashier);

    /**
     * 修改收银员
     * 
     * @param supermarketCashier 收银员
     * @return 结果
     */
    @AutoFill(value = OperationType.UPDATE)
    public int updateSysCashier(SupermarketCashier supermarketCashier);

    /**
     * 删除收银员
     * 
     * @param cashierId 收银员主键
     * @return 结果
     */
    public int deleteSysCashierByCashierId(Long cashierId);

    /**
     * 批量删除收银员
     * 
     * @param cashierIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysCashierByCashierIds(Long[] cashierIds);
}
